<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<ul>
			<li>01</li>
			<li>02</li>
			<li class="list_03">03</li>
			<li>04</li>
			<li>05</li>
		</ul>
		<script>
			var ul = document.getElementsByTagName('ul')[0];
			var li = ul.getElementsByTagName('li');
			
			//克隆节点  默认false 只克隆标签      true 深度克隆
			
			var li_06 = li[2].cloneNode(true);
			ul.appendChild(li_06);
			
			//删除
			//移除子元素 
//			ul.removeChild(li[5]);
			//自己移除自己
			li[5].remove();
			
//			var body = document.getElementsByTagName('body');
			
			
			var body = document.body;
			console.log(body);
			
			//replaceChild();
		</script>
	</body>
</html>
